home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / dvrun.arc / DVRUN.ASM next >
Assembly Source File  |  1989-03-02  |  1KB  |  55 lines

  1. comment * ===================================================================
  2.  
  3.         Copyright (C) 1989 George A. Stanislav
  4.         All rights reserved
  5.  
  6.         Purpose: Open a DESQview window from a batch file.
  7.  
  8.         To run this program, assembly the code, link it, exe2bin it,
  9.         then copy the .DVP file at the end of the program.
  10.  
  11.         For example to run Opus' oMMM program from a batch file:
  12.  
  13.                 MASM DVRUN ;
  14.                 LINK DVRUN ;
  15.                 EXE2BIN DVRUN DVRUN.COM
  16.                 COPY /B DVRUN.COM + OM-PIF.DV OM.COM
  17.                 OM
  18.  
  19. * ===========================================================================
  20.  
  21. include dvapi.inc
  22.  
  23. prog    segment para public 'CODE'
  24.  
  25.         assume  cs:prog, ds:prog, es:prog, ss:prog
  26.  
  27.         org     100h
  28.  
  29. om      proc    near
  30.  
  31.         push    ds
  32.         pop     es
  33.         @call   dvpresent
  34.         test    ax, ax
  35.         jz      nodv
  36.         mov     bx, 416
  37.         lea     di, pif
  38.         @call   newproc
  39.  
  40.         mov     ax, 4c00h
  41.         int     21h
  42. nodv:
  43.         lea     dx, msg
  44.         mov     ah, 9
  45.         int     21h
  46.         mov     ax, 4c01h
  47.         int     21h
  48.  
  49. msg     db      13, 'DESQview not loaded.   ', 13, 10, '$'
  50. pif:
  51. om      endp
  52. prog    ends
  53.         end     om
  54.  
  55.